package com.example.li.myapplication.dagger;

import dagger.Module;
import dagger.Provides;

/**
 * Created by ly on 2016/10/8 09:40.
 */

@Module
public class ActivityModule {

    // 提供依赖的方法, 使用Provides注解, 告诉Dagger2到这里来找对象
    @Provides
    public static HelloDagger provideHelloDagger(){
        User user  = new User();
        user.id = 12;
        user.name = "笑话";
        return new HelloDagger(user);
    }

}